$(function() { 
/*$.ajax({
    type: 'GET',
    url: '/User/users',
    success: function (data) {
        var data = eval(data);
        var proOPts = "";
        $.each(data, function (i) {
            proOPts += "<option value='" + data[i].id+ "'>" + data[i].userName + "</option>";
        });
        $("#userId").append(proOPts);

    }
}); 
//加载计划类别
$.ajax({
    type: 'GET',
    url: '/PlanType/planTypes',
    success: function (data) {
        var data = eval(data);
        var proOPts = "";
        $.each(data, function (i) {
            proOPts += "<option value='" + data[i].id+ "'>" + data[i].typeName + "</option>";
        });
        $("#palnTypeId").append(proOPts);

    }
}); 
*/
	

	
});


//系统查询   每页显示数据 12     
function js_method() {
	$('#lists').html("");
	loadDataPage("operation/planType", "srcoll-documentation", "lists", 12,"userName");

}
 //构建数据列表
function dataKk(data, me) {
	var result = '';
	var arrLen = data.length;
	if (arrLen > 0) {
		for (var i = 0; i < arrLen; i++) {
			result += '<a href="#"  onclick="loadPage(\'/plan?planTypeId='+data[i].id+'\')">'
				+'<li id='+data[i].id+'  >'
				+'<div class="paper-a">类别名称：' + data[i].typeName+'</div>'
				+'<div class="paper-c">创建日期：' + data[i].createDate+'</div>'
				+'<div class="documentation-check"></div>'
				+'</li>'
				+'</a>'
		}
	} else {
		me.lock();
		me.noData();
	}
	return result;
}